<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FE+EB最小值演示</title>
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <!-- Google Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Noto Sans SC', sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            height: 100vh;
        }
        header {
            background-color: #f8f9fa;
            padding: 1rem;
            text-align: center;
            border-bottom: 1px solid #eee;
        }
        .container {
            display: flex;
            flex: 1;
            padding: 1rem;
            gap: 2rem;
        }
        #geogebra-container {
            width: 100%;
            height: 100%;
            border: 1px solid #ccc;
            flex-shrink: 1;
        }
        .control-panel {
            flex: 1;
            max-width: 300px;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
    </style>
</head>
<body>
    <header>
        <h1>直角三角形FE+EB最小值演示</h1>
    </header>
    <div class="container">
        <div id="geogebra-container"></div>
        <div class="control-panel">
             
        </div>
    </div>
    <script src="https://cdn.geogebra.org/apps/deployggb.js"></script>
    <script>
        // GeoGebra 初始化参数（不使用全局变量）
        const parameters = {
            appName: "classic",
            width: "100%",
            height: "100%",
            showToolBar: true,
            showAlgebraInput: false,
            showMenuBar: false,
            allowStyleBar: true,
            enable3d: false,
            language: "zh-CN",
            appletOnLoad: function(api) {
                initializeGeogebra(api);
            }
        };
        const applet = new GGBApplet(parameters, true);
        window.onload = function() {
            applet.inject('geogebra-container');
        };

        // 初始化几何图形
        function initializeGeogebra(api) {
            // 创建图形
            
            // 绑定事件
           
        }

        
    </script>
</body>
</html>